package negocio;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.InputMismatchException;
import java.util.Scanner;

import modelo.Tablero;

public class Entrada {
	static Tablero tablero = Tablero.getInstacia();
	
	public static String input(){
		String salida = "";
		BufferedReader leerEntrada = new BufferedReader(new InputStreamReader(System.in));
		
		try{
			salida = leerEntrada.readLine();
		} 
		
		catch(IOException e) {
			System.err.println("Error: " + e.getMessage());
		}
		
		return salida;
	}
	
	public static Integer inputNum(){
		Integer ret = 0;
		Scanner scan = null;
		
		do{
			try{
				scan = new Scanner(input());
				ret = scan.nextInt();
				break;
			}
			
			catch(NumberFormatException nE){
			}
			
			catch(InputMismatchException inE){
			}
		}while(ret == 0);
		
		scan.close();
		return ret;
	}
}
